<!doctype html>
<html class=" ">
<head>
    <meta charset="UTF-8">
    <title>Laravel技巧库-ITFun课堂</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="shortcut icon" href="/favicon.ico">
    <link rel="stylesheet" media="all" href="/home/assets/css/mobile.css">
    <link rel="stylesheet" media="all" href="/home/assets/font-awesome-4.7.0/css/font-awesome.min.css">
</head>


<body class="sp class info archive">

<header class="headerContents" id="headerContents">
    <h1 class="logo">
        <a href="/">
            <img src="https://images.itfun.tv/school/images/common/logo_horizon.png" alt="ITFun">
        </a>
    </h1>
    <div class="globalMenu l-drawer">
        <input type="checkbox" name="drawer-toggle" class="drawerToggleInput" id="MainDrawer">
        <label class="drawerToggle" for="MainDrawer"><i class="fa fa-bars" aria-hidden="true"></i></label>
        <div class="drawer">
            <label class="drawerToggle" for="MainDrawer"><i class="fa fa-times" aria-hidden="true"></i></label>


            <section class="l-grid grid_2 buttonArea">
                <div class="block">
                    <a href="/users/sign_up" class=" button blue flex">会员注册(免费)</a>
                </div>
                <div class="block logIn">
                    <a href="#" class="button white btn_login_modal" id="btn_login_modal">登录</a>
                </div>
            </section>

            <!-- END userModule -->
            <nav class="menuBlock thin">
                <div class="heading">查找课程</div>
                <ul>
                    <li class="menuItem">
                        <a class="clearfix" href="/categories">
                            <p class="fl">课程分类</p>
                        </a>
                    </li>
                </ul>
                <div class="heading">最新发布</div>
                <ul>
                    <li class="menuItem">
                        <a class="clearfix" href="/calendar">
                            <p class="fl">日历</p>
                        </a>
                    </li>
                    <li class="menuItem">
                        <a class="clearfix" href="/categories/all?sort=near">
                            <p class="fl">最新课程</p>
                        </a>
                    </li>
                    <li class="menuItem">
                        <a class="clearfix" href="/categories/all?sort=featured">
                            <p class="fl">人气课程</p>
                        </a>
                    </li>
                </ul>

                <div class="heading">会员</div>
                <ul>
                    <li class="menuItem"><a class="list_body block" href="/premiums">ITFun会员</a></li>
                </ul>

                <div class="heading">设置</div>
                <ul>
                    <li class="menuItem"><a class="list_body block" href="/users/edit">个人设置</a></li>
                </ul>

                <div class="heading">线下培训</div>
                <ul>
                    <li class="menuItem"><a class="list_body block" href="/trains">课程规划</a></li>
                    <li class="menuItem"><a class="list_body block" href="/trains/frontend">HTML5前端培训</a></li>
                    <li class="menuItem"><a class="list_body block" href="/trains/php">PHP培训</a></li>
                </ul>
            </nav>


        </div>
    </div>
    <section class="m_searchBox">
        <form class="searchWrap center" action="/search" method="get">
            <div class="searchbox flex">
                <input type="text" name="q" placeholder="搜索课程">
                <button type="submit"></button>
            </div>
        </form>
    </section>
</header>

<!-- 临时通知 -->


<div class="breadcrumbs">
    <ul>
        <li><a href="/"><span itemprop="title"><i class="fa fa-home"></i></span></a></li>
        <li><a href="/categories"><span itemprop="title">课程分类</span></a></li>
        <li class="current"><span itemprop="title">{{$course.name}}</span></li>
    </ul>
</div>

<div class="l-contents">

    <section class="courseImage ">
        <img class="top_img border" alt="Laravel技巧库" title="Laravel技巧库" itemprop="thumbnailUrl"
             src="{{$course.photo.image}}">
    </section>

    <section class="m_courseTitle">
        <h1>{{$course.name}}</h1>
        <ul class="tagList">
            <volist name="course.tags" id="tag">
            <li class="listItem">
                <a href="/categories/back_end?course_tag_ids=4">{{$tag.name}}</a>
            </li>
            </volist>
        </ul>
    </section>

    <section class="m_next">
        <div class="m_detail">
            <div class="mt10">
                <div class="m_main live">
                    <div class="heading">
                        第1回：{{$course['chapters'][0]['title']}}
                    </div>
                    <div class="date">{{$course.created_at|date="Y年m月d日"}}发布</div>
                    <div class="time">
                        <div class="time">{{$course.chapters.time}}</div>
                    </div>
                    <div class="announce">此课程是完全免费的</div>
                </div>

                <div class="m_side">
                    <div class="reservation large">
                        <div class="reservationBox noForm wb_27" class_id="27">
                            <div class="m_button">
                                <button class="reservationButton able %>" data-type="Course" data-id="27">
                                    <div class="m_count"><span>31</span></div>
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <a href="/chapters/161" class="button black flex  tooltip" id="enterArchiveBtn" data-class-id="27"
               data-tooltip="{&quot;text&quot;: &quot;快来试听看看&quot;}">
                开始听课
            </a>
        </div>
    </section>

    <section class="section m_summary">

        <div class="foldingBlock">
            <div class="foldingArea">
                <div class="textBlock  mb0">
                        {{$course.body|raw}}

                </div>
            </div>

            <a href="javascript: void 0;" class="showButton showFoldingButton">展开详细く</a>
        </div>
    </section>

    <div class="tab_container">
        <ul class="tabList black tab_list">
            <li class="current"><a href="#tab1">课程列表</a></li>
            <li><a href="#tab2">课程信息</a></li>
        </ul>
        <div class="tab_box is_show" id="tab1">

            <section class="section m_classes ">
                <volist name="chapters" id="chapter">

                <div class="m_class is_archive listItem carousel-cell" data-class-id="161">
                    <div class="m_titles mt10">
                        <div class="classTitle">


                            <a href="/chapters/161" class="classTitleInner">

                                <h2>第{{$key+1}}回：{{$chapter.title}}</h2>
                            </a>

                        </div>
                    </div>

                    <div class="m_actions ml20 mr20">
                        <div class="date">2018年03月03日发布</div>
                        <div class="time"><i class="fa fa-clock-o"></i> 7m 47s
                        </div>
                        <div class="buttons">
                            <a class=" btn_favorite btnFavorite able" data-type="Chapter" data-id="161"><i
                                    class="fa fa-star"></i></a>
                        </div>
                    </div>

                </div>
                </volist>

            </section>
        </div><!-- /.tab_box -->

        <div class="tab_box" id="tab2">
            <section class="section m_target">
                <h3 class="heading"><em>适合人群</em></h3>
                <div class="quote">
                    <div class="targetPersonBox">
                        <div class="targetPerson">{{$course.target}}</div>
                        <p>{{$course.target_body}}</p>
                    </div>
                </div>
            </section>

            <section class="section">
                <div class="sample_file target_box">
                    <h3 class="heading"><em>课程资料</em></h3>
                    <div class="quote">
                        <ul class="files">
                            <volist name="chapters" id="chapter">
                            <li class="file">
                                <a href="/chapters/161/body">第{{$key+1}}回 - {{$chapter.title}}</a>
                            </li>
                            </volist>
                        </ul>
                        <p class="notice mt10">※禁止在课堂外使用。</p>
                    </div>
                </div>
            </section>

            <section class="section">
                <h3 class="heading"><em>喜欢的人（{{$course.likes_count}}人）</em></h3>
                <ul class="watchUserList">
                    <li class="listItem">
                        <a href="/users/40">
                            <img src="https://images.itfun.tv/user/avatar/40/d644b2.gif-small" alt="D644b2">
                        </a>
                    </li>
                    <li class="listItem">
                        <a href="/users/134">
                            <img src="https://images.itfun.tv/user/avatar/134/6cab2f.jpg-small" alt="6cab2f">
                        </a>
                    </li>
                    <li class="listItem">
                        <a href="/users/54">
                            <img src="https://images.itfun.tv/user/avatar/54/8899e0.jpg-small" alt="8899e0">
                        </a>
                    </li>
                    <li class="listItem">
                        <a href="/users/137">
                            <img src="https://images.itfun.tv/user/avatar/137/b1d541.jpg-small" alt="B1d541">
                        </a>
                    </li>
                    <li class="listItem">
                        <a href="/users/167">
                            <img src="https://images.itfun.tv/school/images/common/user_noimg.png" alt="User noimg">
                        </a>
                    </li>
                    <li class="listItem">
                        <a href="/users/94">
                            <img src="https://images.itfun.tv/user/avatar/94/7b7e51.jpg-small" alt="7b7e51">
                        </a>
                    </li>
                    <li class="listItem">
                        <a href="/users/139">
                            <img src="https://images.itfun.tv/user/avatar/139/259076.jpeg-small" alt="259076">
                        </a>
                    </li>
                    <li class="listItem">
                        <a href="/users/117">
                            <img src="https://images.itfun.tv/user/avatar/117/bb9bb9.gif-small" alt="Bb9bb9">
                        </a>
                    </li>
                    <li class="listItem">
                        <a href="/users/186">
                            <img src="http://qzapp.qlogo.cn/qzapp/101446783/8014FE11BBD8916576F559A2BD7CF600/100"
                                 alt="100">
                        </a>
                    </li>
                    <li class="listItem">
                        <a href="/users/190">
                            <img src="http://qzapp.qlogo.cn/qzapp/101446783/E6C5D552A4BFB712C9DDF029572F52A0/100"
                                 alt="100">
                        </a>
                    </li>
                    <li class="listItem">
                        <a href="/users/174">
                            <img src="https://images.itfun.tv/user/avatar/174/fd44fc.png-small" alt="Fd44fc">
                        </a>
                    </li>
                    <li class="listItem">
                        <a href="/users/180">
                            <img src="https://images.itfun.tv/school/images/common/user_noimg.png" alt="User noimg">
                        </a>
                    </li>
                    <li class="listItem">
                        <a href="/users/52">
                            <img src="https://images.itfun.tv/user/avatar/52/53a336.png-small" alt="53a336">
                        </a>
                    </li>
                    <li class="listItem">
                        <a href="/users/218">
                            <img src="https://images.itfun.tv/school/images/common/user_noimg.png" alt="User noimg">
                        </a>
                    </li>
                    <li class="listItem">
                        <a href="/users/224">
                            <img src="https://images.itfun.tv/user/avatar/224/e00875.jpg-small" alt="E00875">
                        </a>
                    </li>
                    <li class="listItem">
                        <a href="/users/193">
                            <img src="http://qzapp.qlogo.cn/qzapp/101446783/24E956A67B3D9BA5617A85341B6A49B2/100"
                                 alt="100">
                        </a>
                    </li>
                    <li class="listItem">
                        <a href="/users/98">
                            <img src="https://images.itfun.tv/user/avatar/98/0d10c4.jpg-small" alt="0d10c4">
                        </a>
                    </li>
                    <li class="listItem">
                        <a href="/users/245">
                            <img src="http://qzapp.qlogo.cn/qzapp/101446783/F67691DF3DAF3C83E61A938C668244CB/100"
                                 alt="100">
                        </a>
                    </li>
                    <li class="listItem">
                        <a href="/users/268">
                            <img src="https://images.itfun.tv/school/images/common/user_noimg.png" alt="User noimg">
                        </a>
                    </li>
                    <li class="listItem">
                        <a href="/users/263">
                            <img src="http://qzapp.qlogo.cn/qzapp/101446783/DC98135C923AF6D0403AE433FF60CAF7/100"
                                 alt="100">
                        </a>
                    </li>
                    <li class="listItem">
                        <a href="/users/84">
                            <img src="https://images.itfun.tv/user/avatar/84/c8e481.png-small" alt="C8e481">
                        </a>
                    </li>
                    <li class="listItem">
                        <a href="/users/229">
                            <img src="http://qzapp.qlogo.cn/qzapp/101446783/F3C9D4C97AB94E89B0BC3FC47297AFED/100"
                                 alt="100">
                        </a>
                    </li>
                    <li class="listItem">
                        <a href="/users/219">
                            <img src="http://qzapp.qlogo.cn/qzapp/101446783/3D6DFED9801E3BD4B24A1B19A2D5A160/100"
                                 alt="100">
                        </a>
                    </li>
                    <li class="listItem">
                        <a href="/users/175">
                            <img src="https://images.itfun.tv/school/images/common/user_noimg.png" alt="User noimg">
                        </a>
                    </li>
                    <li class="listItem">
                        <a href="/users/159">
                            <img src="https://images.itfun.tv/user/avatar/159/c151a3.jpg-small" alt="C151a3">
                        </a>
                    </li>
                    <li class="listItem">
                        <a href="/users/287">
                            <img src="http://qzapp.qlogo.cn/qzapp/101446783/14C120DC8157C75980352DD029FF9FC3/100"
                                 alt="100">
                        </a>
                    </li>
                    <li class="listItem">
                        <a href="/users/158">
                            <img src="https://images.itfun.tv/user/avatar/158/8ad1f1.jpeg-small" alt="8ad1f1">
                        </a>
                    </li>
                    <li class="listItem">
                        <a href="/users/191">
                            <img src="http://qzapp.qlogo.cn/qzapp/101446783/FE346DE7B79CFF60F39DD6C1872D432C/100"
                                 alt="100">
                        </a>
                    </li>
                    <li class="listItem">
                        <a href="/users/300">
                            <img src="https://images.itfun.tv/school/images/common/user_noimg.png" alt="User noimg">
                        </a>
                    </li>
                    <li class="listItem">
                        <a href="/users/305">
                            <img src="http://qzapp.qlogo.cn/qzapp/101446783/443C7C33172F87CDB9188523845F3FDE/100"
                                 alt="100">
                        </a>
                    </li>
                    <li class="listItem">
                        <a href="/users/126">
                            <img src="https://images.itfun.tv/school/images/common/user_noimg.png" alt="User noimg">
                        </a>
                    </li>
                </ul>


            </section>

        </div><!-- /.tab_box -->
    </div><!-- /.tab_container -->

    <section class="section">
        <h3 class="heading"><em>最受欢迎的课程</em></h3>
        <ul class="courseList vertical small">
            <volist name="course_bests" id="course_best">

            <li class="listItem live">
                <a href="/courses/26" title="{{$course_best.name}}">
                    <div class="image badge-traiangle">
                        <img class="image-border" alt="超简单的Laravel新手入门教程"
                             src="{{$course_best.photo.image}}-thumb">
                    </div>
                    <div class="info">
                        <div class="m_badge">

                        </div>
                        <h4 class="title">{{$course_best.name}}</h4>
                        <div class="date">
                            <div class="next">
                                <span>{{$course_best.created_at}}发布</span>
                            </div>
                        </div>
                    </div>
                </a>
            </li>
            </volist>

        </ul>
    </section>


    <section class="section">
        <h3 class="heading"><em>最新课程</em></h3>
        <ul class="courseList vertical small">
            <volist name="course_news" id="course_new">
            <li class="listItem live">
                <a href="/courses/28" title="{{$course_new.name}}">
                    <div class="image badge-traiangle">
                        <img class="image-border" alt="{{$course_new.name}}"
                             src="{{$course_new.photo.image}}-thumb">
                    </div>
                    <div class="info">
                        <div class="m_badge">
                            <span class="badge live">更新中</span>
                        </div>
                        <h4 class="title">{{$course_new.name}}</h4>
                        <div class="date">
                            <div class="next">
                                <span>{{$course_new.created_at}}日发布</span>
                            </div>
                        </div>
                    </div>
                </a>
            </li>
            </volist>
        </ul>
    </section>

    <section class="section">
        <h3 class="heading"><em>相关课程</em></h3>
        <ul class="courseList vertical small">
            <li class="listItem ">
                <a href="/courses/28" title="轻松学会Workerman实战">
                    <div class="image badge-traiangle">
                        <img class="image-border" alt="轻松学会Workerman实战"
                             src="https://images.itfun.tv/photo/2018/01bd9a2af1839d826cf5521627ced567.jpg-thumb">
                    </div>
                    <div class="info">
                        <div class="m_badge">
                            <span class="badge live">更新中</span>
                        </div>
                        <h4 class="title">轻松学会Workerman实战</h4>
                        <div class="detail">
                            <span>2018年02月26日发布</span>
                        </div>
                    </div>
                </a>
            </li>
            <li class="listItem ">
                <a href="/courses/26" title="超简单的Laravel新手入门教程">
                    <div class="image badge-traiangle">
                        <img class="image-border" alt="超简单的Laravel新手入门教程"
                             src="https://images.itfun.tv/photo/2017/38f78c60568fc2ad56c79dea46248d8a.jpg-thumb">
                    </div>
                    <div class="info">
                        <div class="m_badge">

                        </div>
                        <h4 class="title">超简单的Laravel新手入门教程</h4>
                        <div class="detail">
                            <span>2018年02月26日发布</span>
                        </div>
                    </div>
                </a>
            </li>
            <li class="listItem ">
                <a href="/courses/24" title="小白玩转macOS">
                    <div class="image badge-traiangle">
                        <img class="image-border" alt="小白玩转macOS"
                             src="https://images.itfun.tv/photo/2017/01823aa6da9745bfef6f5960b4f503b2.jpg-thumb">
                    </div>
                    <div class="info">
                        <div class="m_badge">
                            <span class="badge live">更新中</span>
                        </div>
                        <h4 class="title">小白玩转macOS</h4>
                        <div class="detail">
                            <span>2018年02月26日发布</span>
                        </div>
                    </div>
                </a>
            </li>
        </ul>
    </section>
</div>

<div id="watchBtnBar">
    <div class="l-contents">
        <div class="imageWrap">
            <img class="top_img border" alt="Laravel技巧库" title="Laravel技巧库" itemprop="thumbnailUrl"
                 src="{{$course.photo.image}}-thumb">
        </div>
        <div class="titleArea">
            <h2>{{$course.name}}</h2>
            <p>{{$course.created_at}} 发布</p>
        </div>
        <div>
            <div class="reservation baloon">
                <div class="reservationBox noForm">
                    <div class="m_button">
                        <button class="reservationButton able" data-type="Course" data-id="27">
                            <div class="m_count"><span>{{$course.likes_count}}</span></div>
                        </button>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>


<div class="pagetop unsigned" style="display:none;">
    <p><a><span><i class="fa fa-angle-up"></i></span></a></p>
</div>
<footer class="globalFooter">
    <div class="links">
        <dl class="campus">
            <dt>ITFun.tv</dt>
            <dd>
                <ul>
                    <li class="grad_white"><a href="/">主页</a></li>
                    <li class="grad_white"><a href="/news">公告</a></li>
                    <li class="grad_white"><a href="/about">关于我们</a></li>
                    <li class="grad_white"><a href="javascript: void 0;">使用方法</a></li>
                    <li class="grad_white"><a href="javascript: void 0;">常见问题</a></li>
                    <li class="grad_white"><a href="/premiums">ITFun会员</a></li>
                    <li class="grad_white"><a href="javascript: void 0;">商业计划</a></li>
                    <li class="grad_white"><a href="javascript: void 0;">使用规则</a></li>
                    <li class="grad_white"><a href="javascript: void 0;">隐私政策</a></li>
                    <li class="grad_white"><a href="javascript: void 0;">社区・准则</a></li>

                </ul>
            </dd>
        </dl>
        <dl class="company">
            <dt>company</dt>
            <dd>
                <ul>
                    <li class="grad_white"><a href="https://www.canon4ever.com" target="_blank">长乐未央教育</a></li>
                    <li class="grad_white"><a href="https://www.canon4ever.com/company">公司概要</a></li>
                    <li class="grad_white"><a href="https://www.canon4ever.com/service">服务</a></li>
                    <li class="grad_white"><a href="https://www.canon4ever.com/notice">通知</a></li>
                    <li class="grad_white"><a href="https://www.canon4ever.com/news">新闻</a></li>
                </ul>
            </dd>
        </dl>
    </div>
    <address>
        <p class="copyright">Copyright 2013-2017 ITFun Inc. All Rights Reserved. <br>鄂ICP备13016268号-9</p>
    </address>
</footer>

<div class="modalCover sc-modal-cover"></div>
<div class="modalCover02 sc-modal-cover"></div>
<div class="modal sc-modal medium" id="loginModalContent">
    <div class="sc-modal-inner">

        <div class="sc-modal-head border-on bg-signup clearfix">

            <div class="mb5">
                <p class="fl fs-large"><strong>登录</strong></p>
                <p class="fr fs-small mt5 origin-hidden"><a href="/users/password/new">→密码忘记了</a>
                </p>
            </div>

        </div>
        <div class="sc-modal-btn clearfix">

            <form class="simple_form form" id="user_login" novalidate="novalidate" action="/users/sign_in"
                  accept-charset="UTF-8" method="post"><input name="utf8" type="hidden" value="✓"><input type="hidden"
                                                                                                         name="authenticity_token"
                                                                                                         value="+VktB1cLjeKH7f+lNgeaAqTFJ5bf2m/wUgFrhrKG9x/nrbTwR4XF5xouyZu5ynGr0bYUl5EGpm8Ul1vCmBS58A==">

                <dl class="formItem">
                    <dt>电子邮件</dt>
                    <dd>
                        <input class="string email required input flex" id="user_login_email" autofocus="autofocus"
                               placeholder="例）support@itfun.tv" type="text" value="" name="user[email]">
                    </dd>
                </dl>

                <dl class="formItem">
                    <dt>密码</dt>
                    <dd>
                        <input class="password required input flex" id="user_login_password" placeholder="半角英文数字 6位数以上"
                               type="password" name="user[password]">
                    </dd>
                </dl>

                <input type="hidden" value="1" name="user[remember_me]">


                <div class="formButton center">
                    <button type="submit" class="button blue" id="btn_login_submit">登录</button>
                </div>
            </form>
            <dl class="cnct">
                <dt><span>社交帐号登录</span></dt>
                <dd>
                    <a href="/users/auth/qq_connect" class="button fb flex small f16"><i class="fa fa-qq"></i>
                        QQ<span class="sphide">登录</span></a>
                </dd>
                <dd>
                    <a href="/users/auth/github" class="button yj flex small f16"><i class="fa fa-github"></i>
                        GitHub<span class="sphide">登录</span></a>
                </dd>
            </dl>

        </div>
        <div class="sc-modal-footer">

            <div class="close"><a href="#"><i class="fa fa-close"></i></a></div>

            <div class="txt"><a href="/users/sign_up" id="btn_signup_modal">→新用户注册（免费）</a></div>
        </div>
    </div>
</div>


<script src="/home/assets/js/jquery.min.js"></script>
<script src="/home/assets/js/flickity.pkgd.mobile.js"></script>
<script src="/home/assets/js/flickity.js"></script>
<script src="/home/assets/js/course.js"></script>
<script src="/home/assets/js/category.js"></script>
<script src="/home/assets/js/tab.js"></script>




</body>
</html>